{imp:"faqs/a_laymob"}<!--模板继承-->

{block:main}
<?php 
$pmod = 'qarep'; 
$did = $this->vars['did'];
$null = '---';
$bugid || $bugid = '---';
?>
<h1 class="news_title">{title($title,96,$this->vars)}</h1>
<div class="news_bar">
  {lang(user.qa_pub)}:<i class="atime">{stime($atime,min)}</i> &nbsp; 
  {lang(user.qa_click)}:<i id="jsid_field_{=$this->mod}:{=$did}:click">{=$click}<!--,add1--></i>{lang(user.qa_times)} 
</div>
<div class="news_text">
 <?php echo tex_faqs::showDetail($detail,$mdshow); ?>
</div>
<div class="news_exbar">
  <i>{lang(user.qa_state)}:{sopt($bugst,faqs.bugst,0,$null)}</i>
  &nbsp; 
  <i>
  {sopt($hinfo,faqs.hinfo,0,$null)}
  {lang(user.qa_bugid)}: {=$bugid}
  </i>
</div>

<div class="news_rem">
  <div class="rembar"> 
  <span class="remadd">
  <!--a href="{surl(0)}?mkv={=$pmod}&pid={=$did}"-->{lang(user.qa_rep)}(<i id="jsid_count_{=$pmod}:{=$did}">0<!--`{=$this->mod},cnt_{=$pmod}`--></i>{lang(user.qa_cnt)})</a></span> 
  <span class="remtitle">{lang(user.qa_relist)}</span> 
  </div><!--[cache,60]--> 
  {tag:dlist=[List][modid,$pmod][pid,$did][limit,20]}
  {:row}
  <dl>
    <dt class="pa5 f16 c069">
    <span class="right f12 c666">{lang(user.qa_pub)}:<i class="atime">{stime($t_atime,min)} </i></span>
    <?php echo $i_v+1 ?># {title($t_title,48,$v)}
    </dt>
    <dd>
    <?php echo tex_faqs::showDetail($t_detail,$t_mdshow); ?>
    <p class="tc">
    <span>by: {=$t_mname}</span> 
    <i class="right">
      {lang(user.qa_imid)}: {if empty($t_miuid) } --- {else}{title($t_miuid,48,$v)}{/if} 
    </i>
    </p>
    </dd>
  </dl>
  {/row}
  {/tag:dlist}
</div>
<div class="clear"></div>
{/block:main}

{block:uend}{:parent}{php}
$jstr = "var qas_id='".(empty($this->vars['catid'])?'_allt':$this->vars['catid'])."', qat_id='detail';";
echo "<script>$('#qat_detail').show();$jstr</script>"; 
{/php}<script>
$(document).ready(function(){
  $('.news_text a').each(function(i, e) {
        var url = $(e).attr("href"); 
    if(url.indexOf('://')>0) $(e).attr("target",'_blank');
    });
});
</script>{/block:uend}
